gpt4 book ai didi

html - CSS Image Bootstrapping 样式内容

转载 作者:行者123 更新时间:2023-11-28 04:24:37 24 4
gpt4 key购买 nike

我一直在尝试制作一个图像以添加到 Bootstrap 中,以便在我将窗口大小时调整为移动 View 时它可以减小其大小。

到目前为止这是我的代码::

<html>
<head>
<link href="user-profile-css/bootstrap.min.css" rel="stylesheet">
<!-- bootstrap theme -->
<link href="user-profile-css/bootstrap-theme.css" rel="stylesheet">
<!--external css-->
<!-- font icon -->
<link href="user-profile-css/elegant-icons-style.css" rel="stylesheet" />
<link href="user-profile-css/font-awesome.min.css" rel="stylesheet" />
<!-- full calendar css-->
<link href="assets/fullcalendar/fullcalendar/bootstrap-fullcalendar.css" rel="stylesheet" />
<link href="assets/fullcalendar/fullcalendar/fullcalendar.css" rel="stylesheet" />
<!-- easy pie chart-->
<link href="assets/jquery-easy-pie-chart/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- owl carousel -->
<link rel="stylesheet" href="user-profile-css/owl.carousel.css" type="text/css">
<link href="user-profile-css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
<!-- Custom styles -->
<link rel="stylesheet" href="user-profile-css/fullcalendar.css">
<link href="user-profile-css/widgets.css" rel="stylesheet">
<link href="user-profile-css/style.css" rel="stylesheet">
<link href="user-profile-css/style-responsive.css" rel="stylesheet" />
<link href="user-profile-css/xcharts.min.css" rel=" stylesheet">
<link href="user-profile-css/jquery-ui-1.10.4.min.css" rel="stylesheet">
</head>
<body>
<section id="main-content">
<section class="wrapper">
<div class="row">
<div class="col-lg-12">
<img alt="img-responsive" class="img-responsive" src="images/mainicons/couponbox.png">
</div>
</div>
</section>
</section>
<script src="user-profile-js/jquery.js"></script>
<script src="user-profile-js/jquery-ui-1.10.4.min.js"></script>
<script src="user-profile-js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="user-profile-js/jquery-ui-1.9.2.custom.min.js"></script>
<!-- bootstrap -->
<script src="user-profile-js/bootstrap.min.js"></script>
<!-- nice scroll -->
<script src="user-profile-js/jquery.scrollTo.min.js"></script>
<script src="user-profile-js/jquery.nicescroll.js" type="text/javascript"></script>
<!-- charts scripts -->
<script src="assets/jquery-knob/js/jquery.knob.js"></script>
<script src="user-profile-js/jquery.sparkline.js" type="text/javascript"></script>
<script src="assets/jquery-easy-pie-chart/jquery.easy-pie-chart.js"></script>
<script src="user-profile-js/owl.carousel.js" ></script>
<!-- jQuery full calendar -->
<<script src="user-profile-js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
<script src="assets/fullcalendar/fullcalendar/fullcalendar.js"></script>
<!--script for this page only-->
<script src="user-profile-js/calendar-custom.js"></script>
<script src="user-profile-js/jquery.rateit.min.js"></script>
<!-- custom select -->
<script src="user-profile-js/jquery.customSelect.min.js" ></script>
<script src="assets/chart-master/Chart.js"></script>
</body>
</html>

现在使它与移动 View 兼容的样式标签是什么。

最佳答案

Bootstrap 有一个辅助工具类 img-responsive

<img class="img-responsive" alt="" src="new folder/couponbox.png">

附言。我相信你做到了,但无论如何,不​​要忘记将 col-*-* 类设置为 div.row 下面的 div .

关于html - CSS Image Bootstrapping 样式内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42037445/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com