BOOTSTRAP PART 3 IN HINDI
Bootstrap Enable/Disable Buttons
आप एक बटन को निष्क्रिय या अनजाने योग्य स्थिति सेट कर सकते हैं।
एक्टिव क्लास का उपयोग बटन दबाए जाने और कक्षा को करने के लिए किया जाता है। डिस्प्लेड एक बटन अनजाने बनाता है:
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Button States</h2>
<button type="button" class="btn btn-primary">Primary Button</button>
<button type="button" class="btn btn-primary active">Active Primary</button>
<button type="button" class="btn btn-primary disabled">Disabled Primary</button>
</div>
</body>
</html>
Bootstrap Block level buttons
ब्लॉक स्तर बटन मूल तत्व की पूरी चौड़ाई को कवर करता है।
The .btn-block class is used to create a block level button:
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Block Level Buttons</h2>
<button type="button" class="btn btn-primary btn-block">Button 1</button>
<button type="button" class="btn btn-default btn-block">Button 2</button>
<h2>Large Block Level Buttons</h2>
<button type="button" class="btn btn-primary btn-lg btn-block">Button 1</button>
<button type="button" class="btn btn-default btn-lg btn-block">Button 2</button>
<h2>Small Block Level Buttons</h2>
<button type="button" class="btn btn-primary btn-sm btn-block">Button 1</button>
<button type="button" class="btn btn-default btn-sm btn-block">Button 2</button>
</div>
</body>
</html>
Bootstrap Alerts
पूर्वनिर्धारित चेतावनी संदेश बनाने का एक आसान तरीका प्रदान करने के लिए बूटस्ट्रैप अलर्ट का उपयोग किया जाता है अलर्ट आपके संदेशों में एक स्टाइल जोड़ता है ताकि उपयोगकर्ताओं को इसे और अधिक आकर्षक बनाया जा सके।
अलर्ट के लिए <div> तत्व के भीतर उपयोग किए जाने वाले चार वर्ग हैं
Ø .alert-success
Ø .alert-info
Ø .alert-warning
Ø .alert-danger
Bootstrap Alert Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Alerts</h2>
<div class="alert alert-success">
<strong>Success!</strong> This alert box indicates a successful or positive action.
</div>
<div class="alert alert-info">
<strong>Info!</strong> This alert box indicates a neutral informative change or action.
</div>
<div class="alert alert-warning">
<strong>Warning!</strong> This alert box indicates a warning that might need attention.
</div>
<div class="alert alert-danger">
<strong>Danger!</strong> This alert box indicates a dangerous or potentially negative action.
</div>
</div>
</body>
</html>
Bootstrap Panels
बूटस्ट्रैप में, एक पैनल एक सीमा वाला बॉक्स है जिसमें उसके तत्व के कुछ पैडिंग होते हैं। पैनल घटकों का उपयोग तब किया जाता है जब आप बॉक्स में अपना DOM घटक डालना चाहते हैं।
वर्ग। पैनल को बूटस्ट्रैप पैनल बनाने के लिए <div> तत्व के भीतर प्रयोग किया जाता है। पैनल के अंदर की सामग्री में एक। पैनल-शरीर वर्ग होता है।
Generally a panel contains three parts:
Ø Panel header
Ø Panel content
Ø Panel footer
Bootstrap Panel Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Panel</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
</head>
<body>
<div class="container">
<h1>Panel Example</h1>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><strong>Panel title</strong></h3>
</div>
<div class="panel-body">
Panel content
</div>
<div class="panel-footer">
<strong>Panel footer</strong>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>
Bootstrap Panel Group
पैनल समूह का उपयोग कई पैनल को एक साथ समूह में करने के लिए किया जाता है।
एक पैनल समूह के लिए, आपको कक्षा के साथ <div> लपेट करना होगा। उनके चारों ओर पैनल समूह।
। पैनल-समूह वर्ग प्रत्येक पैनल के नीचे-मार्जिन को साफ करता है।
See this example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Case</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Panel Group</h2>
<p>The panel-group class clears the bottom-margin. Try to remove the class and see what happens.</p>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">Panel Content</div>
</div>
</div>
</div>
</body>
</html>
Comments
Post a Comment
If you have any doubts. please let me know.