我有这个div:
YOB
我想让它变得敏感。是否可以使用bootstrap?或者我应该用css做什么?我应该怎么做?
答案 0 :(得分:1)
您可以将引导网格系统用于响应式网页或div基本Web应用程序。请参阅链接并详细阅读 http://getbootstrap.com/css/#grid
答案 1 :(得分:1)
将bootstrap类添加到样式或使div响应。我使用col-md-12 col-sm-12
使div
占据全宽。
[contentEditable=true]:empty:not(:focus):before{
content:attr(place-text);
color:grey;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<div class="container">
<div class="col-md-12 sol-sm-12" contenteditable="true" place-text="How's your fitness going?..."></div>
</div>